#include <stdio.h>

int fun(unsigned int x)  
{  
	if(x == 0)  
		return 0x999;  
	unsigned int nx = x>>1;  
	int rv = fun(nx);  
	return (x & 0x01)+rv;  
}  

int main()  
{  
	unsigned int i = 12;  
	fun(i);  
	return 0;  
}
